home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / FWDPARSE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-30  |  2.6 KB  |  74 lines

  1. #ifndef _FWDPARSE_H
  2. #define _FWDPARSE_H
  3.  
  4. struct altlist    {
  5.     char         *name;            /* name of alternate BBS */
  6.     long         minutes;        /* time (in minutes) before ALT assigned msg */
  7.     struct altlist    *next;            /* next in linked list */
  8. };
  9.  
  10. #define NULLALTLIST    ((struct altlist *)0)
  11.  
  12. struct arealist    {
  13.     char        *name;            /* name of area */
  14.     char        *forceaddr;        /* forced rewrite address */
  15.     short        isALT;            /* if set, we are an ALT BBS for this area */
  16.     struct altlist    *alternates;        /* list of out ALTs for this area */
  17.     struct arealist    *next;            /* next in linked list */
  18. };
  19.  
  20. #define NULLAREALIST    ((struct arealist *)0)
  21.  
  22. struct fscript    {
  23.     short        linetype;        /* type of command - SCRIPT_xxx */
  24.     char        *string;        /* parameter string */
  25.     short        timeout;        /* timeout (for wait command) */
  26.     struct fscript    *next;            /* next in linked list */
  27. };
  28.  
  29. #define NULLFSCRIPT    ((struct fscript *)0)
  30.  
  31. #define SCRIPT_SEND     0
  32. #define SCRIPT_WAIT    1
  33. #define SCRIPT_SID    2
  34.  
  35. #define FWDTYPE_MBLRLI    0
  36. #define FWDTYPE_XFWD    1
  37. #define FWDTYPE_FBBNON    2
  38. #define FWDTYPE_FBB    3
  39.  
  40. struct fwdbbs    {
  41.     char         *name;            /* name of BBS */
  42.     char         *conn;            /* connect string (if null, can't do it now) */
  43.     long        ALTtime;        /* default ALT BBS time */
  44.     long        maxsize;        /* maximum size of message to send */
  45.     long        fbbsize;        /* maximum FBB negotiation size */
  46.     short        maxtries;        /* maximum number of 'TRY' conditionals */
  47.     int        minidle;        /* minimum idle time between connects */
  48.     char        poll;            /* is set, we poll even if no outgoing */
  49.     char        subchannel;        /* subchannel number (or NOSUBCHANNEL) */
  50.     char        noreverseincoming;    /* if set, no reverse requested (non FBB) */
  51.     char        noclockset;        /* if set, no clock set to this PMS */
  52.     char        clockoffset;        /* clock set offset (in hours) */
  53.     char        personals;        /* forwarding personal areas permitted */
  54.     char        bulletins;        /* forwarding public areas permitted */
  55.     char        limittype;        /* limit forwarding protocol type */
  56.     char        alwaysupdate;        /* whether to always update laston - for dumb TNCs */
  57.     char        eatenanyprompts;    /* this is to allow eating at most one stray prompt from remote */
  58.     char        dumbpms;        /* this is to work-around TNC PMSs that send no SID */
  59.     time_t        starttime;        /* time this forward session started */
  60.     time_t        limittime;        /* limit time this forward session can process */
  61.     struct fscript    *script;        /* connection script data */
  62.     struct arealist    *areas;            /* information on the areas */
  63. };
  64.  
  65. #define NULLFWDBBS    ((struct fwdbbs *)0)
  66.  
  67. #define NOSUBCHANNEL    (NUMMBX + 10)
  68. #define IFLEVELS    20
  69.  
  70. void fwdfree (struct fwdbbs **f);
  71. struct fwdbbs *fwdread (char *name, int try);
  72.  
  73. #endif /* _FWDPARSE_H */
  74.